//
//  ViewController.h
//  HelloTaxi
//
//  Created by zhenhua zhou on 12-7-9.
//  Copyright (c) 2012年 ECUST. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import "MagiMapView.h"
//#import "StartBoxDelegate.h"

@interface ViewController : UIViewController <CLLocationManagerDelegate, UITextFieldDelegate> 
{
    UILabel * _priceLabel;
    UILabel * _distanceLabel;
    UILabel * _durationLabel;
    
    UITextField * _startTextField;
    UITextField * _endTextField;
    
 //   MagiMapView * _mapView;
    MKMapView * _mapView;
    MagiMapView * _mapDelegate;
 //   StartBoxDelegate * _startBoxDelegate;
    CLLocation* currentLocation;
    
    UILabel * _latLabel;
    UILabel * _lonLabel;
    
    UIButton * _scorllerUp;
    UIButton * _scorllerDown;
    bool mIsMapOpened;
    
    int     _mapMaxHeight;
}

@property(nonatomic, retain)IBOutlet UILabel * priceLabel;
@property(nonatomic, retain)IBOutlet UILabel * distanceLabel;
@property(nonatomic, retain)IBOutlet UILabel * durationLabel;
@property(nonatomic, retain)IBOutlet UITextField * startTextField;
@property(nonatomic, retain)IBOutlet UITextField * endTextField;
//@property(nonatomic, retain)IBOutlet MagiMapView * mapView;
@property(nonatomic, retain)IBOutlet MKMapView * mapView;
@property(nonatomic, retain)IBOutlet MagiMapView * mapDelegate;


@property(nonatomic, retain)IBOutlet UILabel * latLabel;
@property(nonatomic, retain)IBOutlet UILabel * lonLabel;

@property(nonatomic, retain)IBOutlet UIButton * scorllerUp;
@property(nonatomic, retain)IBOutlet UIButton * scorllerDown;


@property(nonatomic, retain)CLLocationManager * locationManager;

-(IBAction)testAction:(id)sender;
-(IBAction)switchMapState:(id)sender;
-(IBAction)backgroundTap:(id)sender;

@end
